package com.leave.service;

import java.sql.SQLException;
import java.util.List;

import com.leave.dao.ApplyDao;
import com.leave.entity.Apply;

public class ApplyService {
	private ApplyDao applyDao = new ApplyDao();

	public void add(Apply apply) throws SQLException {
		applyDao.add(apply);
	}

	public List<Apply> show(String id) throws SQLException {
		return applyDao.show(id);
	}

	public Apply show_apply(int aid) throws SQLException {
		return applyDao.show_apply(aid);
	}

	public void update_apply(Apply apply) throws SQLException {
		applyDao.update_apply(apply);
	}

	public void delete_apply(int aid) throws SQLException {
		applyDao.delete_apply(aid);
	}

	public List<Apply> show_cancle(int status, String l_s_card) throws SQLException {
		return applyDao.show_cancle(status, l_s_card);
	}

	public void leave_cancle(int status, int aid) throws SQLException {
		applyDao.leave_cancle(status, aid);

	}
}
